#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
struct stu
{
	int num;
	char name[10];
	int score1;
	int score2;
};
int main()
{
	struct stu s[3];
	int i = 0;
	for (i = 0; i < 3; i++)
	{
		scanf("%d%s%d%d", &s[i].num, s[i].name, &s[i].score1, &s[i].score2);
	}
	float sum = 0;
	for (i = 0; i < 3; i++)
	{
		sum += (s[i].score1 + s[i].score2);
		sum /= 2;
		printf("s[%d]=%.1f\n", i,sum);
		sum = 0;
	}
	return 0;
}